/*
 * MyDefines.h
 *
 * Created: 30/11/2012 11:13:13 p.m.
 *  Author: Rober
 */ 


#ifndef MYDEFINES_H_
#define MYDEFINES_H_

	// Defines for PAD PORT
	#define PadPortSetup	DDRA	//PORTA CONFIGURATION REGISTER
	#define PadPortIn		PINA	//PORTA DATA INPUT REGISTER
	#define PadPortOut		PORTA	// PORTA DATA OUTPUT REGISTER
	
	#define BttnA			2
	#define BttnB			1
	#define BttnSelect		1
	#define BttunStart		2
	#define BttnLeft		1
	#define BttnRight		2
	#define BttnUp			0
	#define BttnDown		0
	
	#define Section0		7	// active A AND B BUTTONS
	#define Section1		6	// active START, SELECT AND DOWN BUTTONS
	#define Section2		5	// active UP, LEFT AND RIGHT BUTTONS
	
	#define PadPort_Init	(1<<Section0)|(1<<Section1)|(1<<Section2)
	
	// Defines for USART PORT
	
	#define USARTPortSetup	DDRD	//PORTA CONFIGURATION REGISTER
	
	#define TX				1		
	#define RX				0
	
	#define TxMsg			UDR
	#define RxMsg			UDR
	
	#define USARTPort_Init	(1<<TX)
	
#endif /* MYDEFINES_H_ */